Optimal. Leaf size=57 \[ x^5-9 x^3+\frac{\left (103 x^2+102\right ) x}{2 \left (x^4+3 x^2+2\right )}+98 x-\frac{11}{2} \tan ^{-1}(x)-118 \sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0821456, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.129, Rules used = {1668, 1676, 1166, 203} \[ x^5-9 x^3+\frac{\left (103 x^2+102\right ) x}{2 \left (x^4+3 x^2+2\right )}+98 x-\frac{11}{2} \tan ^{-1}(x)-118 \sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1668
Rule 1676
Rule 1166
Rule 203
Rubi steps
\begin{align*} \int \frac{x^6 \left (4+x^2+3 x^4+5 x^6\right )}{\left (2+3 x^2+x^4\right )^2} \, dx &=\frac{x \left (102+103 x^2\right )}{2 \left (2+3 x^2+x^4\right )}-\frac{1}{4} \int \frac{204+6 x^2-108 x^4+48 x^6-20 x^8}{2+3 x^2+x^4} \, dx\\ &=\frac{x \left (102+103 x^2\right )}{2 \left (2+3 x^2+x^4\right )}-\frac{1}{4} \int \left (-392+108 x^2-20 x^4+\frac{2 \left (494+483 x^2\right )}{2+3 x^2+x^4}\right ) \, dx\\ &=98 x-9 x^3+x^5+\frac{x \left (102+103 x^2\right )}{2 \left (2+3 x^2+x^4\right )}-\frac{1}{2} \int \frac{494+483 x^2}{2+3 x^2+x^4} \, dx\\ &=98 x-9 x^3+x^5+\frac{x \left (102+103 x^2\right )}{2 \left (2+3 x^2+x^4\right )}-\frac{11}{2} \int \frac{1}{1+x^2} \, dx-236 \int \frac{1}{2+x^2} \, dx\\ &=98 x-9 x^3+x^5+\frac{x \left (102+103 x^2\right )}{2 \left (2+3 x^2+x^4\right )}-\frac{11}{2} \tan ^{-1}(x)-118 \sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right )\\ \end{align*}
Mathematica [A] time = 0.0479191, size = 58, normalized size = 1.02 \[ x^5-9 x^3+\frac{103 x^3+102 x}{2 \left (x^4+3 x^2+2\right )}+98 x-\frac{11}{2} \tan ^{-1}(x)-118 \sqrt{2} \tan ^{-1}\left (\frac{x}{\sqrt{2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 49, normalized size = 0.9 \begin{align*}{x}^{5}-9\,{x}^{3}+98\,x+52\,{\frac{x}{{x}^{2}+2}}-118\,\arctan \left ( 1/2\,x\sqrt{2} \right ) \sqrt{2}-{\frac{x}{2\,{x}^{2}+2}}-{\frac{11\,\arctan \left ( x \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48617, size = 69, normalized size = 1.21 \begin{align*} x^{5} - 9 \, x^{3} - 118 \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + 98 \, x + \frac{103 \, x^{3} + 102 \, x}{2 \,{\left (x^{4} + 3 \, x^{2} + 2\right )}} - \frac{11}{2} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.75625, size = 209, normalized size = 3.67 \begin{align*} \frac{2 \, x^{9} - 12 \, x^{7} + 146 \, x^{5} + 655 \, x^{3} - 236 \, \sqrt{2}{\left (x^{4} + 3 \, x^{2} + 2\right )} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) - 11 \,{\left (x^{4} + 3 \, x^{2} + 2\right )} \arctan \left (x\right ) + 494 \, x}{2 \,{\left (x^{4} + 3 \, x^{2} + 2\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.184926, size = 54, normalized size = 0.95 \begin{align*} x^{5} - 9 x^{3} + 98 x + \frac{103 x^{3} + 102 x}{2 x^{4} + 6 x^{2} + 4} - \frac{11 \operatorname{atan}{\left (x \right )}}{2} - 118 \sqrt{2} \operatorname{atan}{\left (\frac{\sqrt{2} x}{2} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.08387, size = 69, normalized size = 1.21 \begin{align*} x^{5} - 9 \, x^{3} - 118 \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2} x\right ) + 98 \, x + \frac{103 \, x^{3} + 102 \, x}{2 \,{\left (x^{4} + 3 \, x^{2} + 2\right )}} - \frac{11}{2} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]